package dao;

import util.DBHelper;

import java.util.Map;

public class AdminDao {

    public Map<String,Object> adminLogin(String name, String pwd, String status){
        String sql = "select * from shopping_admin where name = ? and pwd = ? and status = ? ";
        return DBHelper.selectOneMap(sql,name,pwd,status);
    }

    public Map<String,Object> adminLogin(String name, String pwd){
        String sql = "select * from shopping_admin where name = ? and pwd = ?";
        return DBHelper.selectOneMap(sql,name,pwd);
    }

}